<?php

namespace app\index\controller;

use think\Controller;

class Common extends Controller
{
    public function __construct()
    {
        parent::__construct();
        if(!session('user_id')){
           return $this->redirect('index/login/login');
        }
    }

}
